home *** CD-ROM | disk | FTP | other *** search
- // LF2 Engine
- // (C) 2002-3 7FX
- //---------------------------------------------------------------------------
- // Desc
- string desc : Description = "Image shader, ktery meni zobrazeni na zrcadlove v x.";
- // Shader type phase
- string type : Type = "image";
- //---------------------------------------------------------------------------
- // Render target texture
- texture RT : RenderTargetFSMap;
- //---------------------------------------------------------------------------
- sampler sRT = sampler_state
- {
- Texture = <RT>;
- MinFilter = LINEAR;
- MagFilter = LINEAR;
- AddressU = CLAMP;
- AddressV = CLAMP;
- };
- //---------------------------------------------------------------------------
- // Pixel shader
- float4 PS(float2 uv: TEXCOORD0) : COLOR
- {
- float2 texCoord = uv;
- texCoord.x = 1.0 - texCoord.x;
- return tex2D(sRT, texCoord);
- }
-
- //---------------------------------------------------------------------------
- // Technique with vertex and pixel shader
- technique vs11_ps14
- {
- pass p0
- {
- ZEnable = false;
- ZWriteEnable = false;
-
- PixelShader = compile ps_1_4 PS();
- }
- }
- //---------------------------------------------------------------------------